package ru.myrtle.umf.query.condition;

public class UObjectValueCondition extends UValueCondition<Object, UObjectValueAdapter> {

    private final Object value;

    public UObjectValueCondition(Object value, UObjectValueAdapter valueAdapter) {
        super(
                valueAdapter
        );
        this.value = value;
    }

    @Override
    protected boolean isSatisfiedImpl(Object adapted) {
        return adapted.equals(value);
    }
}
